import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const { resolve } = require('path');


export default defineConfig({
  plugins: [vue()],
  base: '/exam/',
  resolve: {
    alias: {
      '@': resolve(__dirname,'src'),
      '@c': resolve(__dirname, 'src/components'),
      '@p': resolve(__dirname, 'src/page')
    }
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `$keyColor: #3d88f2;`
      }
    }
  },
  server: {
    host: '0.0.0.0',
    port: 8080
  }
})
